from rest_framework import generics
from rest_framework import filters
from .models import Trainings
from .serializers import TrainingBriefSerializer

class TrainingList(generics.ListAPIView):
    queryset = Trainings.objects.all()
    serializer_class = TrainingBriefSerializer